package com.dubbo.learning.consumer.controller;

import com.dubbo.learning.api.DemoDubboService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Reference
    private DemoDubboService demoDubboService;

    @RequestMapping("/")
    public String helloWorld(){
        return demoDubboService.helloWorld("hello provider is called");
    }
}
